package com.example.hangzhou.welbeing.mytestdemoapp.adpater;

import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.example.hangzhou.welbeing.mytestdemoapp.factory.MainFragmentFactory;

/**
 * 杭州惟君医疗科技有限公司14
 * Created by 20433 on 2018/2/27
 */

public class MainBaseFragmentAdapter extends FragmentPagerAdapter {
    private Context mcontext;



    public MainBaseFragmentAdapter(FragmentManager fm, Context context) {
        super(fm);
        mcontext = context;
    }

    @Override
    public Fragment getItem(int position) {
        return MainFragmentFactory.CreateCircleObject(position);
    }

    @Override
    public int getCount() {
        return 4;
    }
    }
